package com.ai.mapper.alarm;

import com.ai.entity.alarm.DefectParam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：xiaosheng
 * @Date：2024/5/30 10:05
 */
public interface DefectParamMapper extends BaseMapper<DefectParam> {

    /**
     * 获取指定端面的
     *
     * @param faceType      端面类型 1，a面 2，b面
     * @param alarmAdditionId 告警信息id
     * @return 缺陷索引集合
     */
    List<String> getFaceDefectIndexList(@Param("faceType") String faceType, @Param("alarmAdditionId") Integer alarmAdditionId);


    /**
     * 获取端面缺陷类型
     *
     * @param cgaFaceType     端面
     * @param alarmAdditionId 告警信息id
     * @return 端面缺陷类型
     */
    List<String> getDefectTypeMap(@Param("cgaFaceType") String cgaFaceType, @Param("alarmAdditionId") Integer alarmAdditionId);
}
